package com.huqing.icu.enums;

public enum BusinessConstants {

    SYSTEM_ERROR(500, "系统繁忙，请稍后重试"),
    USER_NOT_LOGIN(5020002, "user not login"),
    USER_NOT_EXISTS(5020004, "user not exists"),
    REDIS_LOCK_TIMEOUT(5223000, "业务繁忙，请稍后再试"),
    USER_LOGIN_FAIL(5020003, "user login fail"),
    USER_REQUEST_TO_FAST(5020008, "user request to fast"),
    GAS3_SAUTH_FAIL(5210001, "sauth fail"),
    COMMENT_HAD_BAD_WORD(5110004, "comment had bad word"),

    /********** 公共  *************/
    DATA_NOT_EXIST(5110005, "数据不存在，请检查"),

    AUCTION_CHEAT(5130003, "auction cheat"),
    PARAMETER_INVALID(5170002, "参数不合法"),
    CREDIT_IS_EXPIRING(5160001, "credit is expiring"),
    THIRD_API_REQUEST_ERROR(5170001, "请求第三方接口出现异常，请稍候重试"),
    ACCESS_TOKEN_INVALID(5170002, "access_token失效"),
    NOT_VALID_USER(5170003, "not valid user"),
    // 第三方服务状态码
    APP_UN_AUTHORIZATION(530001, "该应用还未授权"),
    ACCESS_TOKEN_EXPIRE(530002, "accessToken过期或失效，需要重新授权"),
    REFRESH_TOKEN_EXPIRE(530003, "refreshToken过期或失效，需要重新授权"),
    UNAUTHORIZED_API(530004, "未授权该API"),
    ACCESS_DENIED(530005, "请求被拒绝，或者token失效"),
    DY_FANS_DATA_ERROR(530006, "抖音用户粉丝数据异常"),
    HAS_ALREADY_AUTH_THIRD_PLATFORM(530007, "该第三方平台账号已授权给创爱用户，不能重复授权"),
    GET_ACCOUNT_DATA_ERROR(5300010, "获取账号相关数据出现异常"),
    REFRESH_AUTH_TOKEN_ERROR(5300011, "获取授权相关的token"),
    NOT_OPEN_FOLLOW_PERMISSIONS(5300020, "未开启关注权限"),
    FOLLOW_ACCOUNT_NOT_AUTH(5300021, "被关注的账号未授权"),
    API_LIMITED(5300022, "请求次数过多，请稍后重试"),

    YD_AUTONYM_FAILED(5300023, "易盾实名认证失败"),
    YD_AUTONYM_ERROR(5300024, "易盾实名认证出现错误"),

    USER_DESTROY_INFO_ERROR(5400001, "用户注销信息有误"),
    MANUSCRIPTS_APPLY_SAVE_ERROR(550001, "操作失败，请稍后重试"),

    PARAMETER_LACK(560001, "参数缺失"),
    ACCESS_NOT_VALID(560002, "没有权限"),

    MCN_EMAIL_EXISTED(570001, "该邮箱已被注册！"),
    MCN_PWD_DIFF(570002, "请不要使用旧密码！"),
    MCN_PWD_INVALID(570003, "请输入有效的密码！"),
    MCN_EMAIL_NOT_EXISTED(570004, "该MCN邮箱未注册！"),

    PUBLISHING_FAILED(570005, "内容发布失败，请重新发布，不要离开！"),

    /********** 星推计划 *************/
    STAR_PUSH_GROUP_NOT_EXIST(580001, "输入有误，请输入正确的团ID"),
    STAR_PUSH_GROUP_HAS_DELETED(580002, "该团已解散，无法加入"),
    STAR_PUSH_GROUP_USER_IDENTITY_INVALID(580003, "星推团用户身份校验不通过"),

    /********** 网易支付收益相关 *************/
    HAS_NOT_AUTONYM(590001, "您还未实名认证"),
    HAS_ALREADY_AUTONYM(590002, "您已经实名认证过"),
    HAS_NOT_BIND_BANK(590003, "你还未绑定银行卡"),
    HAS_ALREADY_BIND_BANK(590004, "您已经绑定过银行卡"),
    ID_CARD_HAS_EXIST(590005, "该身份证已认证过"),
    NOT_ADULT_AUTONYM(590006, "未满18周岁，请核查后再试"),


    /****** minio文件上传 **********/
    FILE_UPLOAD_FAIL(591001, "文件上传失败"),
    FILE_DOWNLOAD_FAIL(591002, "文件下载失败"),
    FILE_PREVIEW_FAIL(591003, "文件预览失败"),
    FILE_EXPORT_FAIL(591004, "文件导出失败"),
    ;


    private int code;

    private String msg;

    BusinessConstants(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
